<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich">
<h:head>
	<title>Abertura de Chamado</title>
	<link rel="stylesheet" type="text/css" href="stl/style.css"></link>
</h:head>

<h:body>
	<h:outputLabel />
	<h2 style="text-align: center">Abertura de Chamado</h2>
	<h:form style="text-align: center">
		<label for="CalendarID">Aberto dia :</label>
		<rich:calendar name="Calendar" id="CalendarOpen"
			value="#{chamado.abertura}" required="true"
			requiredMessage="Insira uma data na abertura" mode="ajax"
			datePattern="dd.MM.yyyy" size="10"
			timeZone="#{dWRFD1Handler.timeZone}">
		</rich:calendar>
		<br></br>
		<label for="CalendarID">Fechado dia :</label>
		<rich:calendar name="Calendar" id="CalendarClose"
			value="#{chamado.fechamento}" size="10"
			timeZone="#{dWRFD1Handler.timeZone}" mode="ajax"
			datePattern="dd.MM.yyyy">
		</rich:calendar>
		<br></br>
		<h:outputLabel value="Descrição : " />
		<h:inputText value="#{chamado.descricao}" editable="false">
		</h:inputText>
		<br></br>
		<h:outputLabel value="Funcionario: " />
		<h:selectOneMenu style=" width : 150px;" id="funcionario"
			value="#{chamado.funcionario2}" required="true"
			requiredMessage="Escolha ou cadastre um funcionario">
			<f:selectItems value="#{chamado.funcionarios}" />
		</h:selectOneMenu>
		<br></br>
		<h:outputLabel value="Maquina: " />
		<h:selectOneMenu style=" width : 150px;" id="maquina"
			value="#{chamado.maquina2}" required="true"
			requiredMessage="Escolha ou cadastre uma maquina">
			<f:selectItems value="#{chamado.maquinas}" />
		</h:selectOneMenu>
		<br></br>
		<h:outputLabel value="Tipo do Defeito: " />
		<h:selectOneMenu style=" width : 150px;" id="defeito"
			value="#{chamado.idDefeito}" required="true"
			requiredMessage="Escolha ou cadastre um defeito">
			<f:selectItems value="#{chamado.tipoDefeitos}" />
		</h:selectOneMenu>
		<br></br>
		<h:commandButton action="#{chamado.salvaChamado}" value="Salvar" />
		<br></br>
		<h:outputLink value="../index.xhtml">
			<f:verbatim>Voltar</f:verbatim>
		</h:outputLink>
	</h:form>

</h:body>
</html>